package cn.edu.zafu.bigdata.x.sxy;

import java.io.Serializable;

public class Student implements Serializable {
    private String id;
    private String name;
    private String phone;

    public Student(String id, String name, String phone){
        this.id = id;
        this.name = name;
        this.phone = phone;
    }
    public Student(String id, String name){
        this.id = id;
        this.name = name;
        this.phone = null;
    }
    public Student(String id){
        this.id = id;
        this.name = null;
        this.phone = null;
    }
    @Override
    public String toString(){
        return "学生的ID：" + id + "，名字：" + name + "，电话：" + phone + "\n";
    }
    public String getId(){
        return id;
    }
    public String getName(){
        return name;
    }
    public String getPhone(){
        return phone;
    }
    public void setName(String name){
        this.name = name;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
}
